From 8396bdb759543442c6bbb9e5b0f4ebd7c26a0fce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonas=20=C3=85dahl?= Date: Fri, 4 Dec 2020 18:39:22 +0100 Subject: [PATCH] wayland/surface: Reset last sent min/max size when hiding As with the window geometry, the last sent min/max values must be reset so they are sent again next time the surface is shown. --- gdk/wayland/gdksurface-wayland.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c index d5e777638c..6ad40c39cd 100644 --- a/gdk/wayland/gdksurface-wayland.c +++ b/gdk/wayland/gdksurface-wayland.c @@ -2958,6 +2958,10 @@ gdk_wayland_surface_hide_surface (GdkSurface *surface) unset_transient_for_exported (surface); impl->last_sent_window_geometry = (GdkRectangle) { 0 }; + impl->last_sent_min_width = 0; + impl->last_sent_min_height = 0; + impl->last_sent_max_width = 0; + impl->last_sent_max_height = 0; _gdk_wayland_surface_clear_saved_size (surface); impl->mapped = FALSE; -- 2.30.2